<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/1/19
 * Time: 21:19
 */

defined('BASEPATH') OR exit('No direct script access allowed');

class Article_mod extends CI_Model{
    public function __construct()
    {
        parent::__construct();

    }

    public function article(){
        $query = $this->db->get('article');
        //如果是数组就用result_array() 如果不是就用result()
        return $query->row_array();
    }

}

?>